package org.example.mapper;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.example.pojo.Student;
import org.example.pojo.StudentQueryParam;

import java.util.List;
import java.util.Map;

@Mapper
public interface StudentMapper {

    List<Student> list(StudentQueryParam studentQueryParam);

    void insert(Student student);

    void update(Student student);

    Student getById(Integer id);

    void deleteById(Integer id);

    int updateViolationInfo(int id, int score);

    @MapKey("degree_name")
    List<Map> countStudentDegree();



//    @MapKey("name")
//    List<Map<String,Object>>countClassData();
}
